package org.tissou.client.DonneesAAfficher;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.CheckBox;
import org.tissou.client.Services.MonException;

/**
 * Created by IntelliJ IDEA.
 * User: Manu
 * Date: 26 juil. 2009
 * Time: 15:59:05
 * To change this template use File | Settings | File Templates.
 */
public class Element_CaseACocher implements Element, IsSerializable {

  private transient CheckBox caseACocher;

  public Element_CaseACocher() {
    caseACocher = new CheckBox();
  }

  public boolean estTuCochedPetiteCase() {
    return caseACocher.isChecked();
  }

  public Widget ConvertirEnWidget() {
    return caseACocher;
  }

  public Element_CaseACocher clone() {
    return new Element_CaseACocher();
  }

  public void setCaracteristique(boolean coche) {

      caseACocher.setValue(coche);
  }
}
